.text
// 从汇编上来看，就是跟局部的static变量一样，只是换了个地方而已
.local i
.comm i, 4, 4
.section .rodata
.LC0:
    .string	"now i is %d\n"

.text
.globl  m1
.type m1, @function
m1:
    pushq %rbp
    movq %rsp, %rbp

    incl i(%rip)

    movl i(%rip), %esi
    leaq .LC0(%rip), %rdi
    call printf

    movq %rbp, %rsp
    popq %rbp
    ret

.globl main
.type main, @function
main:
    pushq %rbp
    movq %rsp, %rbp

    call m1
    call m1

    movq %rbp, %rsp
    popq %rbp
    ret